package org.dromara.xhlj.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import org.dromara.starter.jpacomment.annotation.SailColumn;
import org.dromara.starter.jpacomment.annotation.SailIndex;
import org.dromara.starter.jpacomment.annotation.SailTable;
import org.dromara.starter.jpacomment.enums.IndexType;
/**
 * 活动参与对象 xhlj_activity_user_participation
 *
 * @author yf
 * @date 2024-07-28
 */

@Data
@TableName("xhlj_activity_user_participation")
@Entity
@Table(name = "xhlj_activity_user_participation")
@SailTable(comment = "活动参与表", indexs = {
    @SailIndex(name = "idx_activity_task_id", type = IndexType.BTREE,
       columns = {"activity_task_id"}
    ),    @SailIndex(name = "idx_wx_user_id", type = IndexType.BTREE,
       columns = {"create_by"}
    )}
)
public class XhljActivityUserParticipation implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    public static final String TRANS_ID_TO_VO = "xhlj_activityUserParticipation_vo";
    public static final String TRANS_ID_TO_VO_LIST = "xhlj_activityUserParticipation_list";
    /**
     * 参与ID，主键，自增
     */
    @TableId(value = "participation_id", type = IdType.AUTO)
    @Id
    private Integer participationId;
    /**
     * 完成状态（0=未完成，1=已完成）
     */
    @Column(name = "completion_status")
    @SailColumn(comment = "完成状态（0=未完成，1=已完成）",type = "varchar(255)", defaultValue = "NULL")
    private String completionStatus;
    /**
     * 任务ID
     */
    @SailColumn(comment = "任务ID",type = "int", defaultValue = "NULL")
    @Column(name = "activity_task_id")
    private Integer activityTaskId;
    /**
     * 创建人wx_user（西湖论剑用户）
     */
    @SailColumn(comment = "创建人wx_user（西湖论剑用户）",type = "int", defaultValue = "NULL")
    @Column(name = "create_by")
    private Integer createBy;
    /**
     * 完成标识（打卡图片）
     */
    @Column(name = "finish_image")
    @SailColumn(comment = "完成标识（打卡图片）",type = "text", defaultValue = "NULL")
    private String finishImage;
    /**
     * 完成标识（验证码）
     */
    @Column(name = "finish_code")
    @SailColumn(comment = "完成标识（验证码）",type = "varchar(100)", defaultValue = "NULL")
    private String finishCode;
    /**
     * 完成标识（地点）
     */
    @Column(name = "finish_map")
    @SailColumn(comment = "完成标识（地点）",type = "varchar(255)", defaultValue = "NULL")
    private String finishMap;
    /**
     * 创建时间
     */
    @Column(name = "created_time")
    @SailColumn(comment = "创建时间",type = "datetime", defaultValue = "CURRENT_TIMESTAMP")
    private Date createdTime;
    /**
     * 
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Column(name = "del_flag")
    @SailColumn(comment = "",type = "varchar(255)", defaultValue = "NULL")
    private String delFlag;
}
